package cn.zqh.auth.controller;


import cn.zqh.auth.holder.LoginUserHolder;
import cn.zqh.auth.service.UserService;
import cn.zqh.bean.api.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zqh
 * @since 2022-12-24
 */
@RestController
@RequestMapping("/user")
@Api("UserController")
public class UserController {

    @Autowired
    private UserService userService;

//    /**
//      * @Author: zqh
//      * @Date:
//      * @Description: 注册一个新用户
//    */
//    @ApiOperation(value = "创建一个新用户")
//    @PostMapping("/createANewUser")
//    public CommonResult createANewUser(String qq,String password){
//        return userService.createANewUser(qq,password);
//    }

    


}

